package com.lyxs916.testlibrary.viewpagerframent;

import android.widget.TextView;

import com.lyxs916.appbaselibrary.core.utils.gilde.GlideUtils;
import com.lyxs916.testlibrary.R;
import com.lyxs916.adapter.ViewHolder;
import com.lyxs916.adapter.recyclerview.CommonAdapter;

import java.util.List;

/**
 * 说明:陪护-我的订单-适配器
 * 360621904@qq.com 杨阳 2017/3/24  14:17
 */
public class NurserOrderAdapter extends CommonAdapter<NurserOrderdData.ObjsBean> {
    OrderFragment mContext;

    public NurserOrderAdapter(OrderFragment context, List<NurserOrderdData.ObjsBean> datas) {
        super(context.getContext(), R.layout.test_item_nurser_order, datas);
        mContext = context;
    }

    @Override
    public void convert(ViewHolder holder, final NurserOrderdData.ObjsBean data) {
        GlideUtils.showCircle(holder.getImageView(R.id.picture),data.getImg());
        holder.setText(R.id.name, data.getNameDetails());
        holder.setText(R.id.type, data.getTitle());
        holder.setText(R.id.text, data.getServiceTimeDetails());
        holder.setText(R.id.price, data.getNumStr());
        holder.setText(R.id.orderStatus, data.getStateStr());
        TextView statusGray = holder.getView(R.id.cancel);
        TextView statusGreen = holder.getView(R.id.status);

    }

}
